/****************************************************************************
 * charger.h
 *
 * Copyright (c) 2011 Quanta Computer
 * Copyright (c) 2011 Laptop per Child
 *
 ***************************************************************************/

bool ISL_is_tricklecharging();
bool ISL_set_input_current_full(void);
bool ISL_set_power_limit_v1(int pl);
bool ISL_set_charge_current(unsigned int cc);
bool ISL_set_input_current(unsigned int mA);
bool ISL_charger_onoff(int onoff);
void ISL_charger_keepalive(void);

unsigned char ISL_charger_init();

unsigned int ISL_get_charge_current(void);
unsigned int ISL_get_input_current(void);
unsigned int ISL_get_last_input_current(void);
unsigned int ISL_read_input_current(void);
unsigned int ISL_get_max_input_current(void);
unsigned int ISL_set_max_input_current(unsigned int mA);
unsigned int ISL_mA_to_input_current(unsigned int mA);
